<template>
	<view class="content">
		<view class="shipin">
			<video id="myplayer" src="https://img.cdn.aliyun.dcloud.net.cn/guide/uniapp/%E7%AC%AC1%E8%AE%B2%EF%BC%88uni-app%E4%BA%A7%E5%93%81%E4%BB%8B%E7%BB%8D%EF%BC%89-%20DCloud%E5%AE%98%E6%96%B9%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B@20200317.mp4">

			</video>

		</view>
		<view class="describe">
			<h3>描述</h3>
			<view class="details" :style="{height:heightType}">福is的寒风还是单苏打粉has放假还是东湖积分换史蒂芬霍金可视对讲可好看奋达科技东方精工都费劲广东警方地负海涵间哦哦百度佛门少喝实地发书地方公司待豆腐干豆腐干对方
				点酒割发代首实践活动飞机似得hi我我加点分精神困dkvl好的话积分伤度化的寒风惊世毒妃还是单间兴华街是读后感富商大贾混分巨兽单鹄寡凫岁的管回复数的寒风闪电发货圣诞节粉红色的金凤凰is峰哥ID发速度福建省电话费故事的回复红素丢分为shdfvjsdhfhsd</view>
			<view class="look" @tap="lookMore">{{look?'查看更多':'收起'}}</view>
		</view>
		<!-- 选择监控 列表-->
		<view class="monitorList" :style="{height:heightList}">
			<h3>监控列表</h3>
			<view class="list">
				<view class="title">厂区大门</view>
				<view class="img">
					<image src="../../static/parse.png"></image>
				</view>
			</view>
			<view class="list">
				<view class="title">厂区大门</view>
				<view class="img">
					<image src="../../static/parse.png"></image>
				</view>
			</view>
			<view class="list">
				<view class="title">厂区大门</view>
				<view class="img">
					<image src="../../static/parse.png"></image>
				</view>
			</view>
			<view class="list">
				<view class="title">厂区大门</view>
				<view class="img">
					<image src="../../static/parse.png"></image>
				</view>
			</view>
			<view class="list">
				<view class="title">厂区大门</view>
				<view class="img">
					<image src="../../static/parse.png"></image>
				</view>
			</view>
			<view class="list">
				<view class="title">厂区大门</view>
				<view class="img">
					<image src="../../static/parse.png"></image>
				</view>
			</view>
			<view class="list">
				<view class="title">厂区大门</view>
				<view class="img">
					<image src="../../static/parse.png"></image>
				</view>
			</view>
			<view class="list">
				<view class="title">厂区大门</view>
				<view class="img">
					<image src="../../static/parse.png"></image>
				</view>
			</view>
			<view class="list">
				<view class="title">厂区大门</view>
				<view class="img">
					<image src="../../static/parse.png"></image>
				</view>
			</view>
			<view class="list">
				<view class="title">厂区大门</view>
				<view class="img">
					<image src="../../static/parse.png"></image>
				</view>
			</view>
			<view class="list">
				<view class="title">厂区大门</view>
				<view class="img">
					<image src="../../static/parse.png"></image>
				</view>
			</view>
			<view class="list">
				<view class="title">厂区大门</view>
				<view class="img">
					<image src="../../static/parse.png"></image>
				</view>
			</view>
			<view class="list">
				<view class="title">厂区大门</view>
				<view class="img">
					<image src="../../static/parse.png"></image>
				</view>
			</view>
		</view>
		<view class="lookList" @tap="lookMoreList">{{looks?'查看更多':'收起'}}</view>
	</view>
</template>

<script>
	import $ from 'jquery';
	import ezuikit from 'ezuikit';
	export default {
		data() {
			return {
				heightType: '200rpx',
				look: true,
				looks: true,
				heightList: '385rpx'
			}
		},
		methods: {
			lookMore() {
				if (this.look) {
					this.heightType = 'auto'
					this.look = !this.look
				} else {
					this.heightType = "200rpx"
					this.look = !this.look
				}

			},
			lookMoreList() {
				if (this.looks) {
					this.heightList = 'auto'
					this.looks = !this.looks
				} else {
					this.heightList = "385rpx"
					this.looks = !this.looks
				}
			}
		}

	}
</script>

<style lang="less" scoped>
	.content {
		width: 100%;
		box-sizing: border-box;
		padding: 20rpx 30rpx;
		background-color: #fff;

		.shipin {
			width: 100%;
			height: 500rpx;

			video {
				width: 100%;
				height: 100%;
			}
		}

		.describe {
			width: 100%;

			h3 {
				padding: 20rpx 0;
				box-sizing: border-box;
				font-size: 28rpx;
			}

			.details {
				font-size: 30rpx;
				color: #666;
				text-indent: 2em;
				overflow: hidden;
			}

			.look {
				padding: 20rpx 0;
				box-sizing: border-box;
				text-align: center;
				font-size: 28rpx;
				color: #666;
			}
		}

		.monitorList {
			width: 100%;
			padding: 20rpx;
			box-sizing: border-box;
			border-top: 1px solid #eee;
			overflow: hidden;

			h3 {
				color: #666;
				font-size: 30rpx;
				padding: 20rpx 0;
			}

			.list {
				display: flex;
				justify-content: space-between;
				align-items: center;
				padding: 15rpx 20rpx;
				box-sizing: border-box;
				border-top: 1px solid #eee;

				.title {
					color: #666;
					font-size: 28rpx;

				}

				.img {
					width: 40rpx;
					height: 40rpx;

					image {
						width: 100%;
						height: 100%;
					}
				}

			}

		}

		.lookList {
			padding: 20rpx 0;
			box-sizing: border-box;
			text-align: center;
			font-size: 28rpx;
			color: #666;
		}

	}
</style>
